import request from '@/utils/request'


// 查询仓库回收单列表
export function getRecycleOrder(query) {
  return request({
    url: '/basic/warehouse/recycleOrder/',
    method: 'get',
    params: query
  })
}


// 仓库回收单详情
export function getRecycleOrderDetail(query) {
  return request({
    url: '/basic/warehouse/recycleOrderDetail/'+query,
    method: 'get'
  })
}



// 确认回收状态
export function recycleOrderConfirm(query) {
  return request({
    url: '/basic/warehouse/recycleOrder/confirm',
    method: 'post',
    data: query
  })
}



// 删除仓库回收单
export function delRecycleOrder(query) {
  return request({
    url: '/basic/warehouse/recycleOrder/'+query,
    method: 'delete'
  })
}


// 新增仓库回收单
export function addRecycleOrder(query) {
  return request({
    url: '/basic/warehouse/recycleOrder/',
    method: 'post',
    data: query
  })
}


// 修改仓库回收单
export function updateRecycleOrder(query) {
  return request({
    url: '/basic/warehouse/recycleOrder/',
    method: 'put',
    data: query
  })
}


// 查询配送员出货单
export function getAllDelivery(query) {
  return request({
    url: '/basic/warehouse/recycleOrder/refer',
    method: 'get',
    params: query
  })
}

//回收单明细列表
export function particularsList(query) {
  return request({
    url: '/basic/warehouse/recycleOrder/particulars',
    method: 'get',
    params: query
  })
}
//回收单明细详情
export function particularDetail(id) {
  return request({
    url: '/basic/warehouse/recycleOrderDetail/particulars/'+ id,
    method: 'get'
  })
}
//回收单明细汇总
export function particularSum(query) {
  return request({
    url: '/basic/warehouse/recycleOrderDetail/all/particulars',
    method: 'get',
    params: query
  })
}

//撤销回收单
export function cancelRecycleOrder(query) {
  return request({
    url: '/basic/warehouse/recycleOrderDetail/all/particulars',
    method: 'get',
    params: query
  })
}
